<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="zozopo.user.operations.*" %>
<%@ page import="zozopo.operations.comm.*" %>
<%@ page import="zozopo.operations.oa.*" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<html>
  <head>
    
    <title>凌趣工作通讯录 - 凌趣Office Automation(办公自动化)系统</title>
    
	
<style>
	<!--
	table {
	table-layout: fixed;
	word-wrap:break-word;
	}
	td{
		
		word-break:break-all;
		
	}
	
	.bottomline td{
		
		word-break:break-all;
		border-bottom:1px dashed #ccc;
	}
	
	
	}
	BODY {
		PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: arial,san serif
	}
	
	
	//-->
</style>

  </head>
  
  <body>
  
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr>
  		<td valign="top">
  			<jsp:include page="/manual/head.jsp"></jsp:include>
  		</td>
  	</tr>
  	<tr>
  		<td valign="top">
  			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 <tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%">
    		
    		
    		
    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
		  	<jsp:include page="left.jsp"></jsp:include>
				 
				 
				
     	</td>
     	
     	
     	<td valign="top" >
     <table border="0" cellpadding="0" cellspacing="0" >
    	 <tr>
     		<td>
     		
     		<%
					DictionaryOS dictionaryOS = new DictionaryOS();
					Map dictionaryLableMap = dictionaryOS.getDictionaryValueMapByKind("OA.ADDRESS");
					
					
					AddressbookOS addressbookOS = new AddressbookOS();
					
					
					Iterator iter = dictionaryLableMap.entrySet().iterator();
					while(iter.hasNext()){
						Map.Entry entry = (Map.Entry)iter.next();
						DictionaryTB dictionary	= (DictionaryTB)entry.getValue();
						
						//if(dictionary.getDictionary_code().equals("MANUAL.LABLE.OTHER")) continue;
				%>
					
					
					<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		
			     		<tr>
			     			<td><%=dictionary.getDictionary_value() %></td>
			     		</tr>
     				</table>
     				
     				<table border="0" cellpadding="0"  cellspacing="0" width="100%"  style= "border:1px solid #ffffff;" class="bottomline">
     				<tr>
     							<td width="150">公司</td>
								<td width="80">姓名</td>
								<td width="120">手机</td>
								<td width="140">电话</td>
								<td width="100">QQ</td>
								
								<td width="80">职位</td>
								<td width="110">职务</td>
								<td >主要经营</td>
							</tr>
     				<%
     				    List<AddressbookTB> addressbookList = addressbookOS.selectAddressbookByKind(dictionary.getDictionary_code());
     					for(AddressbookTB addressbook:addressbookList){
     					%>
     					
							
							
							<tr >
								<td>
								<a href="#"  ><%=addressbook.getCompany_addressbook() %> </a>
								
								
								</td>
								<td ><a href="premodifyaddressbook.action?id=<%=addressbook.getId_addressbook() %>" title="<%=addressbook.getAddress_addressbook() %>"><%=addressbook.getName_addressbook() %></a></td>
								<td> <%=addressbook.getMobile_addressbook() %> </td>
								<td> <%=addressbook.getPhone_addressbook() %> </td>
								<td> <%=addressbook.getQq_addressbook() %> </td>
								
								
								<td> <%=addressbook.getJobs_addressbook() %> </td>
								<td> <%=addressbook.getDuties_addressbook() %></td>
								<td> <%=addressbook.getDes_addressbook() %></td>
							</tr>
     					
				<%
     					}
					}
					addressbookOS.releaseConnection();
					dictionaryOS.releaseConnection();
				%>
     			</table>
     		
     	
     	</td>
     		</tr>
 <tr>
     		<td>
     			<br/>
				


	</td>
     		</tr>
     		 <tr>
     		<td>
     			
     	</td>
     	</tr>
     	
     	
     	
     	</table>
	</td>
</tr>

</table>
  		</td>
  	</tr>
  	<tr>
  		<td valign="bottom">
  			<jsp:include page="tail.jsp"></jsp:include>
  		</td>
  	</tr>
  
  </table>
</body>
  
</html>
